package com.smxy.hunzi.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smxy.hunzi.common.utils.PageUtils;
import com.smxy.hunzi.common.utils.Query;

import com.smxy.hunzi.user.dao.FocusOrBeFocusDao;
import com.smxy.hunzi.user.entity.FocusOrBeFocusEntity;
import com.smxy.hunzi.user.service.FocusOrBeFocusService;


@Service("focusOrBeFocusService")
public class FocusOrBeFocusServiceImpl extends ServiceImpl<FocusOrBeFocusDao, FocusOrBeFocusEntity> implements FocusOrBeFocusService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FocusOrBeFocusEntity> page = this.page(
                new Query<FocusOrBeFocusEntity>().getPage(params),
                new QueryWrapper<FocusOrBeFocusEntity>()
        );

        return new PageUtils(page);
    }

}